﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Toolbox
{
    public class CommandMessage
    {
        private string _methodName;
        private object[] _parameterArray;
        private string _subject;

        public string MethodName
        {
            get { return _methodName; }
            set { _methodName = value; }
        }

        public object[] ParameterArray
        {
            get { return _parameterArray; }
            set { _parameterArray = value; }
        }

        public string Subject
        {
            get { return _subject; }
            set { _subject = value; }
        }

        public CommandMessage()
        {
            _methodName = "";
            _parameterArray = null;
            _subject = "";
        }

        public CommandMessage(string methodName, object[] parameterArray, string subject)
        {
            _methodName = methodName;
            _parameterArray = parameterArray;
            _subject = subject;
        }
    }
}
